// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   CourseRequestValidator.java

package com.nervytech.tutorcruise.spring.form.validator;

import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;

@Component("courseRequestValidator")
public class CourseRequestValidator
{
    public void validate(Object target, Errors errors)
    {
        ValidationUtils.rejectIfEmptyOrWhitespace(errors, "courseTitle", "NotEmpty.courseRequestForm.courseTitle", "Course Title must be provided");
        ValidationUtils.rejectIfEmptyOrWhitespace(errors, "category", "NotEmpty.courseRequestForm.category", "Category must be provided");
        ValidationUtils.rejectIfEmptyOrWhitespace(errors, "expecetdStartDate", "NotEmpty.courseRequestForm.expecetdStartDate", "Expected Start Date must be provided");
        ValidationUtils.rejectIfEmptyOrWhitespace(errors, "duration", "NotEmpty.courseRequestForm.duration", "Duration must be provided");
        ValidationUtils.rejectIfEmptyOrWhitespace(errors, "attendeesCount", "NotEmpty.courseRequestForm.attendeesCount", "Attendees Count must be provided");
        ValidationUtils.rejectIfEmptyOrWhitespace(errors, "experienceRequired", "NotEmpty.courseRequestForm.experienceRequired", "Experience Required must be provided");
        ValidationUtils.rejectIfEmptyOrWhitespace(errors, "skillSets", "NotEmpty.courseRequestForm.skillSets", "SkillSet must be provided");
        ValidationUtils.rejectIfEmptyOrWhitespace(errors, "expecetdContents", "NotEmpty.courseRequestForm.expecetdContents", "Expecetd Content must be provided");
        ValidationUtils.rejectIfEmptyOrWhitespace(errors, "notes", "NotEmpty.courseRequestForm.notes", "Notes must be provided");
    }
}
